source(here::here("code/load.R"))

here("data/meta_analyses_raw/OweLi2020/owenli_data.dta") |>
    read_dta() |>
    mutate(meta_id = "OweLi2020",
           subfield = "IR",
           question = "How does democracy affect FDI?",
           studyid = as.character(studyid),
           overall_effect = "no") |>
    select(meta_id,
           subfield,
           question,
           study_id = studyid,
           study_year = year,
           study_journal = journal,
           sample_size = nobs,
           estimate = pc_fe,
           std.error = sepcfe,
           dv = dvshare,
           overall_effect) |>
    write_csv(here("data/meta_analyses_clean/OweLi2020.csv"))

